import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"

@Entity()
export class Profile {
    [x: string]: any

    @PrimaryGeneratedColumn()
    id: number

    @Column({
        length: 20,
        default: ''
    })
    companyName: string

    @Column()
    myTime: Date

    @Column({
        length: 20,
        default: ''
    })
    careerName: string

    @Column()
    link: string

    @Column({
        default: false
    })
    isWriteTest: boolean

    @Column({
        default: false
    })
    isFaceTest: boolean

    @Column({
        nullable: true
    })
    writeTestTime: Date

    @Column({
        nullable: true
    })
    faceTestTime: Date

    @Column({
        default: ''
    })
    source: string

    @Column({
        default: ''
    })
    remark: string
}
